import BaiduImagery from "./baiduImagery.js";
import AMapImagery from "./amapImagery.js";

export const ImageryType = {
    BAIDU: "baidu",
    GAODE: "gaode",
    ArcGis: "ArcGis",
};

export default class Imagery {
    constructor(type) {
        this.type = type;
    }
    create(option) {
        if (this.type == ImageryType.BAIDU) {
            return new BaiduImagery(option);
        }
        if (this.type == ImageryType.GAODE) {
            return new AMapImagery(option);
        }
        if (this.type == ImageryType.ArcGis) {
            return new Cesium.ArcGisMapServerImageryProvider(option);
        }
    }
}
